﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using AspNetCs.Bll;

public partial class control_IndexMovie_Control :BaseControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            DataBindRepeater();
        }
        
    }

    public void DataBindRepeater()
    {
        string cmdText = "select top 3 *from video order by id desc";
        DataTable dataTable = new DataTable();
        dataTable=ExcuteSqlTextBLL.GetDataTable(cmdText);
        rptVideos.DataSource = dataTable;
        rptVideos.DataBind();
    }
}
